package com.erp.util;

import net.sf.json.JSONObject;

public class JsonUtil {
	// {"code":0,"data":{"country":"\u4e2d\u56fd","country_id":"CN","area":"\u534e\u5317","area_id":"100000","region":"\u5317\u4eac\u5e02","region_id":"110000","city":"\u5317\u4eac\u5e02","city_id":"110000","county":"","county_id":"-1","isp":"\u8054\u901a","isp_id":"100026","ip":"202.108.22.5"}}

	public static Object fromJSON2Beans(String jsonStr) {
		JSONObject jsonObject = JSONObject.fromObject(jsonStr);
		jsonObject.get("data");
		System.out.println(jsonObject);
		
		return jsonObject.toString();
	}

	public static void main(String[] args) {

	}

}
